﻿using System;
using System.IO;
using System.Windows.Media.Media3D;

namespace SBPweb.MediaCenter.Tools.WPF.Resources
{

    public static class Resource3DSReader
    {

        public static Model3DGroup ReadModel3DGroupFromFile(string fileName)
        {
            Ab3d.Reader3ds reader = new Ab3d.Reader3ds();
            Model3DGroup group = reader.ReadFile(fileName);

            return group;
        }

        public static Model3DGroup ReadModel3DGroupFromFile(Stream fileStream)
        {
            Ab3d.Reader3ds reader = new Ab3d.Reader3ds();
            Model3DGroup group = reader.ReadFile(fileStream);

            return group;
        }

    }

}